import "./assets/main.css";

import { createApp } from "vue";
import ElementPlus from "element-plus";
// 引入pinia状态管理库
import store from './stores';
import "element-plus/dist/index.css";

import App from "./App.vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import router from "./router";
import Echarts from "vue-echarts";
import * as echarts from "echarts";

const app = createApp(App);

app.use(router);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component("v-chart", Echarts);
app.use(store)

app.config.globalProperties.$echarts = echarts;
app.use(ElementPlus);
app.mount("#app");
